Skip to main content

Subedition By ID

This script returns the full Subedition entity from the TopShot smart contract.

Parameters:

  • subeditionID: The unique ID for the subedition whose data needs to be read

Returns: Subedition - Struct from TopShot contract

import TopShot from 0xTOPSHOTADDRESS

pub fun main(subeditionID: UInt32): TopShot.Subedition {

let subedititon = TopShot.getSubeditionByID(subeditionID: subeditionID)

return subedititon
}